package com.hainatong.shiphelper.login.view;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.databinding.DataBindingUtil;

import com.base.common.view.base.BaseFragment;
import com.base.common.viewmodel.BaseViewModel;
import com.hainatong.shiphelper.R;
import com.hainatong.shiphelper.api.PublicValues;
import com.hainatong.shiphelper.databinding.FragmentUserInfoBinding;

public class UserInfoFragment extends BaseFragment<FragmentUserInfoBinding, BaseViewModel> {



    @Override
    protected FragmentUserInfoBinding initDataBinding(LayoutInflater inflater, ViewGroup container) {
        return DataBindingUtil.inflate(inflater, R.layout.fragment_user_info, container, false);
    }

    @Override
    public void initData() {
        super.initData();
        if (PublicValues.getUserInfo() != null) {
            binding.setItem(PublicValues.getUserInfo());
        }
    }


}
